package com.nnnu.wsnackshop.pojo.dto;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Data
@ExcelIgnoreUnannotated
public class ImportCategoryDTO {

    @ExcelProperty("分类名称")
    @NotBlank(message = "分类名称不能为空")
    private String name;

    @ExcelProperty("父级分类ID")
    private Integer parentId;

    @ExcelProperty("描述")
    private String description;

    @ExcelProperty("排序")
    private Integer sort;

    @ExcelProperty("状态")
    private Integer status;
}

